package com.atguigu.gulimall.test.config;

import com.atguigu.gulimall.test.entity.Teacher;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class BeanConfig {

    @Bean
    public Teacher teacher1(){
        return new Teacher();
    }

    @Bean
    public Teacher teacher2(){
        return new Teacher();
    }
}
